import Http from '../../http';

export const getList = function(page:number,limit:number) {
    return Http.get('/UserGroup/index',{page,limit}) 
}

export const getEdit = function(id:number) {
    return Http.get('/UserGroup/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/UserGroup/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/UserGroup/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/UserGroup/Delete',{id:id}) 
}
